package com.jsy.mini12306.common.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * 订单细则表（乘客、座位）(TicketOrderIterm)实体类
 *
 * @author: SongyangJi
 * @since: 2021-09-02 21:27:25
 * @description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TicketOrderIterm implements Serializable {
    private static final long serialVersionUID = 134348786841604355L;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long orderId;
    /**
     * 乘客id
     */
    private Long passengerId;
    /**
     * 票的类型
     */
    private String ticketType;
    /**
     * 票价
     */
    private Float price;
    /**
     * 座位类型
     */
    private SeatType seatType;
    /**
     * 车厢
     */
    private String bin;
    /**
     * 座位号
     */
    private String seat;


}
